/*


 */

package jas.http.response;

import jas.http.request.HttpRequest;

/**
 *
 *
 */
public class FixedHttpResponseFactory implements HttpResponseFactory {

    public HttpResponse createResponse(HttpRequest request) {
        HttpResponse response = new HttpResponse();
        response.setCode(ResponseCode.OK);
        response.setBody(new StringResponseBody("This is " + request.getPath()));
        response.setHeader("Server", "Test");
        return response;
    }

}
